﻿using System;
using System.Collections.Generic;
using NOSDC.Pocos;
using System.Linq.Expressions;

namespace NOSDC.Repositories
{
    public interface IArticleRepository
    {
        int CreateArticle(Article article);
        int UpdateArticle(Article article);
        bool DeleteArticle(Article article);
        Article GetArticleByID(int id);
        Article GetArticleByID(int id, bool getComments);
        IEnumerable<Article> GetArticles(Expression<Func<Article, bool>> expression);
        IEnumerable<Article> GetAllArticles();
        IEnumerable<Article> GetFrontpageArticles();

    }
}
